import { defineStore } from 'pinia';
import { useStorage } from '@uni-helper/uni-use';

export const useUserStore = defineStore('user', () => {
  const userInfo = useStorage('Yarward-user', {});
  const setUserInfo = (obj) => {
    userInfo.value = obj;
  };
  return { userInfo, setUserInfo };
});
